home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-11 | 850 b | 27 lines | [TEXT/GEOL] |
- Item 4834305 10-May-90 01:01PDT
-
- From: MUYSVASOVIC ACE - Jean-Denis Muys-Vasovic
-
- To: CPLUS.APPLE$ C++ Interest List--Apple Employees
- CPLUS.DEV$ C++ Interest List--Developers
-
- Sub: Re[N+1] What's in Main?
-
- Another PITFALL with C++ segmentation (though slightly unrelated) is the
- following: you have a segment holding code executed at interrupt time. It must
- stay resident. its name is INTERRUPT. The following doesn't work:
-
- #pragma segment INTERRUPT // MUST be RESIDENT!!
- void dangerous(void)
- {
- ... whatever ...
- }
-
- this procedure is placed in a segment named "INTERRUPT // MUST be RESIDENT!!"
- which IS NOT resident. The lesson: don't COMMENT the preprocessor statements.
-
- Hope that helps somebody around here!!!
-
- Jean-Denis
-
-